package com.personal.kousuan.domain;

import java.util.HashMap;
import java.util.Map;

public class Question {

	public static final String id_key = "id";
	public static final String question_key = "question";
	public static final String answer_key = "answer";
	private int id;
	private String question;
	private String answer;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String getAnswer() {
		return answer;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
	public Map<String,String> getMap(){
		Map<String,String> map = new HashMap<String,String>();
		map.put(id_key, String.valueOf(id));
		map.put(question_key, question);
		map.put(answer_key, answer);
		return map;
	}
	public Map<String,String> getMapWithoutAnswer(){
		Map<String,String> map = new HashMap<String,String>();
		map.put(id_key, String.valueOf(id));
		map.put(question_key, question);
		map.put(answer_key, "");
		return map;
	}
	
}

